From 4ecad21545f41d87bc8ee352248d4ea53d72d988 Mon Sep 17 00:00:00 2001 From: "robertlipe@gmail.com" Date: Sat, 8 Dec 2012 17:01:28 +0000 Subject: [PATCH] Steve and I volley improvements README.contrib. Moves astyle settings out of doc and into astylerc. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4216 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/README.contrib | 28 ++++++---------------------- gpsbabel/astylerc | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+), 22 deletions(-) create mode 100644 gpsbabel/astylerc diff --git a/gpsbabel/README.contrib b/gpsbabel/README.contrib index cc706cb8d..fda753114 100644 --- a/gpsbabel/README.contrib +++ b/gpsbabel/README.contrib @@ -33,35 +33,19 @@ prefer: <2spaces>} } -The corresponding astyle settings for this are: - - # One True Brace Style - function curlies are in column zero for easy - # selection in vi. - --style=1tbs - - # Two column indents. - -s2 - - # Even single line ifs and elses get braces. - --add-brackets - - # Insert space after 'if', 'for', 'while'. - --pad-header - - # Remove extraneous spaces in parens. - --unpad-paren - - # Prefer char* foo to char *foo. - --align-pointer=type - --align-reference=type +Formatting can be done with astyle using the included style file +astylerc with the command "astyle --options=astylerc {source files}". +astyle is available at http://astyle.sourceforge.net/ +The corresponding astyle settings for this are provided in our source +tree in the file named 'astylerc' Submitting Patches ------------------ If you are creating a new target you should submit patches (use -"cvs diff -uN" to create patches) to the following files: +"svn diff" to create patches) to the following files: * Yourcode.c and/or Yourcode.h - this is the code required to do your conversions and any support files that your code requires. * vecs.c - an updated vecs.c file implementing your conversion code into diff --git a/gpsbabel/astylerc b/gpsbabel/astylerc new file mode 100644 index 000000000..e9f038c78 --- /dev/null +++ b/gpsbabel/astylerc @@ -0,0 +1,19 @@ +# One True Brace Style - function curlies are in column zero for easy +# selection in vi. +--style=1tbs + +# Two column indents. +-s2 + +# Even single line ifs and elses get braces. +--add-brackets + +# Insert space after 'if', 'for', 'while'. +--pad-header + +# Remove extraneous spaces in parens. +--unpad-paren + +# Prefer char* foo to char *foo. +--align-pointer=type +--align-reference=type -- 2.30.2